package com.qf.purchasing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.purchasing.entity.Detail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DetailMapper extends BaseMapper<Detail> {
    //根据计划sid，分页查询采购细节列表
    List<Detail> selectDetailsBySid(@Param("sid") int sid);

    //根据id删除采购明细记录
    int updateStatusById(@Param("ids") int[] ids);

    //根据计划sid 删除采购详明细记录
    int updateStatusByScheduleId(@Param("sid") int sid);

    //根据计划sid 修改采购详明细状态
    int updateByScheduleId(@Param("sid") int sid);

    //根据计划sid 查询有没有对象的采购明细
    List<Detail> selectByScheduleId(@Param("sid") int sid);


}